#define _CRT_SECURE_NO_WARNINGS 1
#include "Queue2.h"
void test()
{
	Que* pq = (Que*)malloc(sizeof(Que));
	initQueue(pq);

	QueuePush(pq, 1);
	QueuePush(pq, 2);
	QueuePush(pq, 3);
	QueuePush(pq, 4);
	QueuePush(pq, 5);
	QueuePush(pq, 6);

	while (!QueueEmpty(pq))
	{
		QuDatatype data = pq->head->data;
		//QuDatatype data = pq->tail->data;
		printf("%d->", data);
		QueuePop(pq);
	}
	printf("\n");

	Queuedestroy(pq);
}

int main()
{
	test();

	return 0;
}